package com.taoist_awei.blog.infrastructure.mapper;

import com.taoist_awei.blog.core.ClassifyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Mapper
public interface ClassifyMapper {
    void insertClassify(@Param("classify") ClassifyEntity classify);

    void deleteClassify(@Param("classifyId") String classifyId);

    void updateClassify(@Param("classify") ClassifyEntity classify);

    ClassifyEntity findClassifyById(@Param("classifyId") String classifyId);

    List<ClassifyEntity> getClassifyList();

    void updateArticleNum(@Param("articleNum") Integer articleNum);

}
